function check(cc)
{
	var count=document.getElementById("pCount");
	if(count.value<=0)
		{
		alert("商品数量至少为1");
		event.returnValue=false;
		}
	if(count.value>cc)
		{
		alert("库存没有足够的商品");
		event.returnValue=false;
		}
}
function onlyNum()
{
	if(!((event.keyCode>=48&&event.keyCode<=57)||(event.keyCode>=96&&event.keyCode<=105))&&event.keyCode!=8)
	{
		event.returnValue=false;
		
	}
	}